/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrameMenuPrincipal.java
 *
 * Created on 26/09/2011, 05:59:40 PM
 */

package views;

import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 *
 * @author JARR
 */
public class FrameMenuPrincipal extends javax.swing.JFrame {

    private PanelGestionUsuarios panelGestionUsuarios = new PanelGestionUsuarios();
    private PanelGestionMedicos panelGestionMedicos = new PanelGestionMedicos();
    private PanelGestionConsultorios panelGestionConsultorios = new PanelGestionConsultorios();
    private PanelGestionCitas panelGestionCitas = new PanelGestionCitas();
    private JLabel opcionSeleccionada = null;

    /** Creates new form FrameMenuPrincipal */
    public FrameMenuPrincipal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        PanelPrincipal = new javax.swing.JPanel();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        logo = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        BGestionCitas = new javax.swing.JLabel();
        BGestionUsuarios = new javax.swing.JLabel();
        BGestionConsultorios = new javax.swing.JLabel();
        BGestionMedicos = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        labelLogo = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        PanelPrincipal.setBackground(new java.awt.Color(250, 250, 255));
        PanelPrincipal.setLayout(new java.awt.BorderLayout());

        logo.setBounds(80, 0, 550, 410);
        jLayeredPane1.add(logo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PanelPrincipal.add(jLayeredPane1, java.awt.BorderLayout.CENTER);

        jPanel1.setBackground(new java.awt.Color(102, 102, 102));

        BGestionCitas.setFont(new java.awt.Font("Dialog", 1, 10));
        BGestionCitas.setForeground(new java.awt.Color(255, 255, 255));
        BGestionCitas.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BGestionCitas.setText("Gestión de Citas");
        BGestionCitas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                BGestionCitasoptionMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BGestionCitasoptionMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BGestionCitasoptionMouseExited(evt);
            }
        });

        BGestionUsuarios.setFont(new java.awt.Font("Dialog", 1, 10));
        BGestionUsuarios.setForeground(new java.awt.Color(255, 255, 255));
        BGestionUsuarios.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BGestionUsuarios.setText("Gestión de Usuarios");
        BGestionUsuarios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                BGestionUsuariosoptionMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BGestionUsuariosoptionMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BGestionUsuariosoptionMouseExited(evt);
            }
        });

        BGestionConsultorios.setFont(new java.awt.Font("Dialog", 1, 10));
        BGestionConsultorios.setForeground(new java.awt.Color(255, 255, 255));
        BGestionConsultorios.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BGestionConsultorios.setText("Gestíon de Consultorios");
        BGestionConsultorios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                BGestionConsultoriosoptionMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BGestionConsultoriosoptionMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BGestionConsultoriosoptionMouseExited(evt);
            }
        });

        BGestionMedicos.setFont(new java.awt.Font("Dialog", 1, 10));
        BGestionMedicos.setForeground(new java.awt.Color(255, 255, 255));
        BGestionMedicos.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        BGestionMedicos.setText("Gestión de Medicos");
        BGestionMedicos.setMaximumSize(new java.awt.Dimension(95, 14));
        BGestionMedicos.setMinimumSize(new java.awt.Dimension(95, 14));
        BGestionMedicos.setPreferredSize(new java.awt.Dimension(95, 14));
        BGestionMedicos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                BGestionMedicosoptionMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                BGestionMedicosoptionMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                BGestionMedicosoptionMouseExited(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(BGestionUsuarios, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                    .addComponent(BGestionMedicos, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                    .addComponent(BGestionConsultorios, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                    .addComponent(BGestionCitas, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(BGestionUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BGestionMedicos, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BGestionConsultorios, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BGestionCitas, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(81, Short.MAX_VALUE))
        );

        jButton1.setBackground(new java.awt.Color(0, 0, 51));
        jButton1.setFont(new java.awt.Font("Dialog", 1, 14));
        jButton1.setForeground(new java.awt.Color(204, 204, 204));
        jButton1.setText("Cerrar Sesión");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel1.setBackground(new java.awt.Color(0, 0, 0));
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 18));
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Menú");
        jLabel1.setOpaque(true);

        jPanel2.setBackground(new java.awt.Color(0, 51, 102));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 730, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE))
                .addGap(734, 734, 734))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(labelLogo, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(20, 20, 20)))
                    .addGap(4, 4, 4)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(PanelPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 730, Short.MAX_VALUE))
                    .addGap(0, 0, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(155, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(labelLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(383, 383, 383)
                            .addComponent(jButton1))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(PanelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(0, 0, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void BGestionCitasoptionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionCitasoptionMouseClicked

        if(!labelLogo.isVisible()){
            labelLogo.setVisible(true);
        }

        JLabel obj = (JLabel) evt.getSource();

        if (obj != opcionSeleccionada) {
            JPanel panel = null;

            if (opcionSeleccionada != null) {
                opcionSeleccionada.setHorizontalAlignment(JLabel.LEFT);
                opcionSeleccionada.setForeground(Color.white);
            }

            opcionSeleccionada = obj;

            opcionSeleccionada.setForeground(new Color(204, 204, 255));
            opcionSeleccionada.setHorizontalAlignment(JLabel.RIGHT);

            if (evt.getSource().equals(BGestionCitas)) {
               // panelGestionCitas.iniciarPanel();
                panel = panelGestionCitas;
                this.setTitle("Gestion de Citas");
            } else if (evt.getSource().equals(BGestionUsuarios)) {
              //  panelGestionUsuarios.iniciarPanel();
                panel = panelGestionUsuarios;
                this.setTitle("Gestión de Usuarios");
            } else if (evt.getSource().equals(BGestionConsultorios)) {
             //   panelGestionConsultorios.iniciarPanel();
                panel = panelGestionConsultorios;
                this.setTitle("Gestion de Consultorios");
            } else if (evt.getSource().equals(BGestionMedicos)) {
               // panelGestionCitas.iniciarPanel();
                panel = panelGestionMedicos;
                this.setTitle("Gestión de Medicos");
            }

            PanelPrincipal.setVisible(false);
            PanelPrincipal.removeAll();
            PanelPrincipal.add(panel);
            PanelPrincipal.setVisible(true);
            PanelPrincipal.requestFocusInWindow();
        }
}//GEN-LAST:event_BGestionCitasoptionMouseClicked

    private void BGestionCitasoptionMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionCitasoptionMouseEntered
        JLabel obj = (JLabel) evt.getSource();
        obj.setHorizontalAlignment(JLabel.RIGHT);
}//GEN-LAST:event_BGestionCitasoptionMouseEntered

    private void BGestionCitasoptionMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionCitasoptionMouseExited
        JLabel obj = (JLabel) evt.getSource();
        if (obj != opcionSeleccionada && obj.getHorizontalAlignment() == JLabel.RIGHT) {
            obj.setHorizontalAlignment(JLabel.LEFT);
        }
}//GEN-LAST:event_BGestionCitasoptionMouseExited

    private void BGestionUsuariosoptionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionUsuariosoptionMouseClicked

        if(!labelLogo.isVisible()){
            labelLogo.setVisible(true);
        }

        JLabel obj = (JLabel) evt.getSource();

        if (obj != opcionSeleccionada) {
            JPanel panel = null;

            if (opcionSeleccionada != null) {
                opcionSeleccionada.setHorizontalAlignment(JLabel.LEFT);
                opcionSeleccionada.setForeground(Color.white);
            }

            opcionSeleccionada = obj;

            opcionSeleccionada.setForeground(new Color(204, 204, 255));
            opcionSeleccionada.setHorizontalAlignment(JLabel.RIGHT);

            if (evt.getSource().equals(BGestionCitas)) {
               // panelGestionCitas.iniciarPanel();
                panel = panelGestionCitas;
                this.setTitle("Gestión de Citas");
            } else if (evt.getSource().equals(BGestionUsuarios)) {
               // panelGestionUsuarios.iniciarPanel();
                panel = panelGestionUsuarios;
               // this.setTitle("Gestión de Usuarios);
            } else if (evt.getSource().equals(BGestionConsultorios)) {
              //  panelGestionConsultorios.iniciarPanel();
                panel = panelGestionConsultorios;
                this.setTitle("Gestión de Consultorios");
            } else if (evt.getSource().equals(BGestionMedicos)) {
              //  panelGestionMedicos.iniciarPanel();
                panel = panelGestionMedicos;
                this.setTitle("Gestión de Medicos");
            }

            PanelPrincipal.setVisible(false);
            PanelPrincipal.removeAll();
            PanelPrincipal.add(panel);
            PanelPrincipal.setVisible(true);
            PanelPrincipal.requestFocusInWindow();
        }
}//GEN-LAST:event_BGestionUsuariosoptionMouseClicked

    private void BGestionUsuariosoptionMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionUsuariosoptionMouseEntered
        JLabel obj = (JLabel) evt.getSource();
        obj.setHorizontalAlignment(JLabel.RIGHT);
}//GEN-LAST:event_BGestionUsuariosoptionMouseEntered

    private void BGestionUsuariosoptionMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionUsuariosoptionMouseExited
        JLabel obj = (JLabel) evt.getSource();
        if (obj != opcionSeleccionada && obj.getHorizontalAlignment() == JLabel.RIGHT) {
            obj.setHorizontalAlignment(JLabel.LEFT);
        }
}//GEN-LAST:event_BGestionUsuariosoptionMouseExited

    private void BGestionConsultoriosoptionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionConsultoriosoptionMouseClicked

        if(!labelLogo.isVisible()){
            labelLogo.setVisible(true);
        }

        JLabel obj = (JLabel) evt.getSource();

        if (obj != opcionSeleccionada) {
            JPanel panel = null;

            if (opcionSeleccionada != null) {
                opcionSeleccionada.setHorizontalAlignment(JLabel.LEFT);
                opcionSeleccionada.setForeground(Color.white);
            }

            opcionSeleccionada = obj;

            opcionSeleccionada.setForeground(new Color(204, 204, 255));
            opcionSeleccionada.setHorizontalAlignment(JLabel.RIGHT);

            if (evt.getSource().equals(BGestionCitas)) {
              //  panelGestionCitas.iniciarPanel();
                panel = panelGestionCitas;
                this.setTitle("Gestión de Citas");
            } else if (evt.getSource().equals(BGestionUsuarios)) {
               // panelGestionUsuarios.iniciarPanel();
                panel = panelGestionUsuarios;
                this.setTitle("Gestión de Usuarios");
            } else if (evt.getSource().equals(BGestionConsultorios)) {
              //  panelGestionConsultorios.iniciarPanel();
                panel = panelGestionConsultorios;
                this.setTitle("Gestión de Consultorios");
            } else if (evt.getSource().equals(BGestionMedicos)) {
               // panelGestionMedicos.iniciarPanel();
                panel = panelGestionMedicos;
                this.setTitle("Gestión de Medicos");
            }

            PanelPrincipal.setVisible(false);
            PanelPrincipal.removeAll();
            PanelPrincipal.add(panel);
            PanelPrincipal.setVisible(true);
            PanelPrincipal.requestFocusInWindow();
        }
}//GEN-LAST:event_BGestionConsultoriosoptionMouseClicked

    private void BGestionConsultoriosoptionMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionConsultoriosoptionMouseEntered
        JLabel obj = (JLabel) evt.getSource();
        obj.setHorizontalAlignment(JLabel.RIGHT);
}//GEN-LAST:event_BGestionConsultoriosoptionMouseEntered

    private void BGestionConsultoriosoptionMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionConsultoriosoptionMouseExited
        JLabel obj = (JLabel) evt.getSource();
        if (obj != opcionSeleccionada && obj.getHorizontalAlignment() == JLabel.RIGHT) {
            obj.setHorizontalAlignment(JLabel.LEFT);
        }
}//GEN-LAST:event_BGestionConsultoriosoptionMouseExited

    private void BGestionMedicosoptionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionMedicosoptionMouseClicked

        if(!labelLogo.isVisible()){
            labelLogo.setVisible(true);
        }

        JLabel obj = (JLabel) evt.getSource();

        if (obj != opcionSeleccionada) {
            JPanel panel = null;

            if (opcionSeleccionada != null) {
                opcionSeleccionada.setHorizontalAlignment(JLabel.LEFT);
                opcionSeleccionada.setForeground(Color.white);
            }

            opcionSeleccionada = obj;

            opcionSeleccionada.setForeground(new Color(204, 204, 255));
            opcionSeleccionada.setHorizontalAlignment(JLabel.RIGHT);

            if (evt.getSource().equals(BGestionCitas)) {
              //  panelGestionCitas.iniciarPanel();
                panel = panelGestionCitas;
                this.setTitle("Gestión de Citas");
            } else if (evt.getSource().equals(BGestionUsuarios)) {
              //  panelGestionUsuarios.iniciarPanel();
                panel = panelGestionUsuarios;
                this.setTitle("Gestión de Usuarios");
            } else if (evt.getSource().equals(BGestionConsultorios)) {
              //  panelGestionConsultorios.iniciarPanel();
                panel = panelGestionConsultorios;
                this.setTitle("Gestión de Consultorios");
            } else if (evt.getSource().equals(BGestionMedicos)) {
               // panelGestionMedicos.iniciarPanel();
                panel = panelGestionMedicos;
                this.setTitle("Gestión de Medicos");
            }

            PanelPrincipal.setVisible(false);
            PanelPrincipal.removeAll();
            PanelPrincipal.add(panel);
            PanelPrincipal.setVisible(true);
            PanelPrincipal.requestFocusInWindow();
        }
}//GEN-LAST:event_BGestionMedicosoptionMouseClicked

    private void BGestionMedicosoptionMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionMedicosoptionMouseEntered
        JLabel obj = (JLabel) evt.getSource();
        obj.setHorizontalAlignment(JLabel.RIGHT);
}//GEN-LAST:event_BGestionMedicosoptionMouseEntered

    private void BGestionMedicosoptionMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BGestionMedicosoptionMouseExited
        JLabel obj = (JLabel) evt.getSource();
        if (obj != opcionSeleccionada && obj.getHorizontalAlignment() == JLabel.RIGHT) {
            obj.setHorizontalAlignment(JLabel.LEFT);
        }
}//GEN-LAST:event_BGestionMedicosoptionMouseExited

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    System.exit(0);
}//GEN-LAST:event_jButton1ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrameMenuPrincipal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel BGestionCitas;
    private javax.swing.JLabel BGestionConsultorios;
    private javax.swing.JLabel BGestionMedicos;
    private javax.swing.JLabel BGestionUsuarios;
    private static javax.swing.JPanel PanelPrincipal;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel labelLogo;
    private javax.swing.JLabel logo;
    // End of variables declaration//GEN-END:variables

}
